package com.yixun.qfbao.dao.impl;

import java.util.List;

import com.yixun.qfbao.model.CustomerCountParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yixun.qfbao.dao.ChannelReportDao;
import com.yixun.qfbao.mapper.ChannelReportMapper;
import com.yixun.qfbao.model.ChannelCooOrgAgentReport;
import com.yixun.qfbao.model.ChannelCooOrgReport;
import com.yixun.qfbao.model.ChannelReportParam;

@Service("channelReportDao")
public class ChannelReportDaoImpl implements ChannelReportDao {
	
	@Autowired
	private ChannelReportMapper channelReportMapper;

	@Override
	public int getChannelCooOrgReportCount(ChannelReportParam param) {
		return channelReportMapper.getChannelCooOrgReportCount(param);
	}

	@Override
	public List<ChannelCooOrgReport> getChannelCooOrgReportList(ChannelReportParam param, int begin, int end) {
		return channelReportMapper.getChannelCooOrgReportList(param, begin, end);
	}

	@Override
	public int getChannelCooOrgAgentReportCount(ChannelReportParam param) {
		return channelReportMapper.getChannelCooOrgAgentReportCount(param);
	}

	@Override
	public List<ChannelCooOrgAgentReport> getChannelCooOrgAgentReportList(ChannelReportParam param, int begin, int end) {
		return channelReportMapper.getChannelCooOrgAgentReportList(param, begin, end);
	}

	@Override
	public int getCustomerSuccessCount(CustomerCountParam param) {
		return channelReportMapper.getCustomerSuccessCount(param);
	}

	@Override
	public int getCustoemrComeToCount(CustomerCountParam param) {
		return channelReportMapper.getCustoemrComeToCount(param);
	}
}
